from django.db import models

from course.models import CourseModel
from user.models import UserModel
from utils.BaseModel import BaseModel


# Create your models here.
class CartModel(BaseModel):
    user=models.ForeignKey(UserModel,on_delete=models.CASCADE,verbose_name='用户')
    course=models.ForeignKey(CourseModel,on_delete=models.CASCADE,verbose_name='课程')
    selected=models.BooleanField(default=True,verbose_name='是否选中')
    class Meta:
        db_table='fg_cart'